package com.allwees.bs.core.model.user.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
public abstract class DeviceModel {

    private static final long serialVersionUID = -2543366765211512308L;

    @TableId(type = IdType.AUTO)
    protected Integer id;

    private String userUuid;

    private String jpushId;

    @TableField(fill = FieldFill.INSERT)
    protected Date createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    protected Date updatedAt;

    public DeviceModel(String userUuid, String jpushId) {
        super();
        this.userUuid = userUuid;
        this.jpushId = jpushId;
    }
}
